<?php


namespace Yond\LaravelDomain\Console;


class DomainMakeCommand extends Command
{
    public $signature = 'yond:domain:make {--domain= : The name of domain}';

    protected $description = 'Make a domain';

    public function handle()
    {
        $domain = ucfirst($this->optionOrAsk('domain', 'Please the name of domain to generated'));

        $domainPath = base_path('domain/' . $domain);

        $this->ensureDirectoryExists($domainPath);
    }

}